package com.example.android.navigationdrawerexample;


import java.io.InputStream;

import android.os.Bundle;
import android.app.Activity;
import android.app.Dialog;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.TextView;

public class MainActivityLj extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       View v = //this.findViewById(R.layout.q2);
       this.getLayoutInflater().inflate(R.layout.q2, null);
       ImageView img = (ImageView) v.findViewById(R.id.imageView1);
       BitmapFactory.Options opt = new BitmapFactory.Options();
       opt.inPreferredConfig = Bitmap.Config.RGB_565;
       opt.inPurgeable = true;
       opt.inInputShareable = true;
       InputStream is = this.getResources().openRawResource(
				R.drawable.u15_normal);
       Bitmap bit = BitmapFactory.decodeStream(is, null, opt);
       img.setImageBitmap(bit);
       v.setBackgroundResource(R.drawable.u0_normal);
       setContentView(v);
        
    }


    
}
